ADP\BaseVersion\Includes\Core\RuleProcessor\PackageRuleProcessor D

Total Complexity 172
Dependencies 23
Dependents 1
Total lines 1,032
Lines of code 626
Logical lines of code 442
Comment lines 191
Methods 22
Properties 16

Methods 22

Method Rating Maintainability Complexity Lines of code
applyRangeDiscounts()
D
11
90 324
applyProductAdjustment()
C
35 24 80
isProductMatched()
A
45 13 41
sortItems()
A
54 8 22
process()
S
49 6 34
__construct()
S
55 3 18
isRuleMatchedCart()
S
64 3 11
addAutoAddProducts()
S
64 3 10
addFreeProducts()
S
64 3 10
applyChangesToCart()
S
64 3 10
applyToCart()
S
60 2 14
addGifts()
S
72 2 6
createSets()
S
65 2 9
addAutoAdds()
S
72 2 6
withContext()
S
81 1 3
collectSets()
S
64 1 10
getStatus()
S
82 1 3
applyCartAdjustments()
S
80 1 3
checkConditions()
S
80 1 3
checkLimits()
S
80 1 3
getLastExecTime()
S
81 1 3
getRule()
S
82 1 3